﻿using System;


namespace Wayloop.Blog.Core.Extensions
{
    public static class StringExtensions
    {
        public static bool IsNullOrEmpty(this string input)
        {
            return String.IsNullOrEmpty(input);
        }


        public static bool IsNotNullOrEmpty(this string input)
        {
            return !input.IsNullOrEmpty();
        }


        public static string FormatWith(this string format, params object[] values)
        {
            if (format.IsNullOrEmpty()) {
                return format;
            }

            return String.Format(format, values);
        }
    }
}